home *** CD-ROM | disk | FTP | other *** search
- if(this._parent.mainDisplay.mode == "login")
- {
- this._parent.updateGamesCompleted();
- }
- this.aF = this._parent.arrowsFired;
- this.hH = this._parent.heartsHit;
- this.fH = this._parent.fliesHit;
- trace("Arrows fired = " + this._parent.arrowsFired);
- trace("Misses = " + this._parent.misses);
- if(this._parent.arrowsFired != 0)
- {
- this.acc = Math.round(100 * (this._parent.arrowsFired - this._parent.misses) / this._parent.arrowsFired);
- }
- else
- {
- this.acc = 0;
- }
- if(this._parent.arrowsFired != 0 and this._parent.arrowsFired != this._parent.misses)
- {
- this.aC = Math.ceil((this._parent.heartsHit + this._parent.fliesHit) / (this._parent.arrowsFired - this._parent.misses));
- }
- else
- {
- this.aC = 0;
- }
- this.mC = this._parent.maxHits;
- this.mP = this._parent.maxPts;
- this.fS = this._parent.score;
- this.nameInst.onSetFocus = function()
- {
- if(this.text == "Type your name here")
- {
- this.text = "";
- }
- };
- this.acc += "%";
- this.nameInst.onSetFocus = function()
- {
- if(this.text == "Enter Your Name")
- {
- this.text = "";
- }
- };
- this.nameInst.onKillFocus = function()
- {
- if(this.text == "")
- {
- this.text = "Enter Your Name";
- }
- };
- this.sendScore = function()
- {
- var t = this;
- ab20_09 = new LoadVars();
- ab20_09.z = t.nameInst.text;
- ab20_09.x = t.fs;
- ab20_09.c = 682;
- ab20_09.v = "XMUSUF";
- ab20_09.sendAndLoad("http://armorbot.com/s_b",ab20_09,"POST");
- };
-